package com.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import com.example.model.AddAddressDTO;

@Mapper
public interface AddressMapper {
    @Insert("insert into tb_address(address) values(#{address})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int addAddress(AddAddressDTO addAddressDTO);
}
